package com.it.biz.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.it.biz.CourseBiz;
import com.it.dao.mapper.CoursesMapper;
import com.it.pojo.Courses;
import com.it.pojo.CoursesExample;
import com.jkoss.tool.Page;
@Service("courseService")
public class CourseBizImp implements CourseBiz{
	@Resource
	private CoursesMapper coursesDao;
	@Override
	public int insert(Courses record) {
		// TODO Auto-generated method stub
		
		return coursesDao.insert(record);
	}

	@Override
	public int deleteByExample(CoursesExample example) {
		// TODO Auto-generated method stub
		return coursesDao.deleteByExample(example);
	}

	@Override
	public List<Courses> findAll(Page page) {
		// TODO Auto-generated method stub
		return coursesDao.findAll(page);
	}

	@Override
	public int updateByPrimaryKey(Courses record) {
		// TODO Auto-generated method stub
		return coursesDao.updateByPrimaryKey(record);
	}

	@Override
	public Courses selectByPrimaryKey(Integer cid) {
		// TODO Auto-generated method stub
		return coursesDao.selectByPrimaryKey(cid);
	}

	@Override
	public int deleteByPrimaryKey(Integer cid) {
		// TODO Auto-generated method stub
		return coursesDao.deleteByPrimaryKey(cid);
	}

	@Override
	public List<Courses> selectByExample(CoursesExample example) {
		// TODO Auto-generated method stub
		return coursesDao.selectByExample(example);
	}

	@Override
	public int delAll(String[] cid) {
		// TODO Auto-generated method stub
		return coursesDao.delAll(cid);
	}

	@Override
	public List<Courses> selectAll(Integer[] cid) {
		// TODO Auto-generated method stub
		return coursesDao.selectAll(cid);
	}

}
